﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.AgilePlanner
{
    public partial class StoryContainer
    {
        //internal void UpdateCapacity()
        //{
        //    float capacity = 0;
        //    foreach (Story story in Stories)
        //    {
        //        if (story != null) capacity += story.Capacity;
        //    }
        //    Capacity = capacity;
        //}

        public float GetCapacityValue()
        {
            float capacity = 0;
            foreach (Story story in Stories)
            {
                if (story != null) capacity += story.Capacity;
            }
            return capacity;
        }
    }
}
